<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>HideGadget</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">HideGadget()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#006666"><b>HideGadget</b></font>(#Gadget, State)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Hide or show a gadget. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget</i></td>
<td width="90%"> 
 
The gadget to use. 

 

</td></tr>
<tr><td><i>State</i></td>
<td> 
 
The new state of the gadget. 
If State = 1, the gadget will be hidden, if State = 0 it will be shown. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">If</font></b> <font color="#006666">OpenWindow</font>(0, 0, 0, 180, 120, "HideGadget", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font>)
<font color="#006666">    ButtonGadget</font>(0, 10, 10, 160, 50, "Button 1")       : button = <font color="#924B72">#True</font>   <font color="#006666">; Button is displayed</font>
<font color="#006666">    ButtonGadget</font>(1, 10, 80, 160, 30, "Hide Button 1")
    <b><font color="#006666">Repeat</font></b>
      Event =<font color="#006666"> WaitWindowEvent</font>()
      <b><font color="#006666">If</font></b> Event = <font color="#924B72">#PB_Event_Gadget</font>
        <b><font color="#006666">If</font></b> <font color="#006666">EventGadget</font>() = 1
          <b><font color="#006666">If</font></b> button = <font color="#924B72">#True</font>     <font color="#006666">; ButtonGadget is displayed</font>
<font color="#006666">            HideGadget</font>(0, 1)     <font color="#006666">; =&gt; hide it</font>
            button = <font color="#924B72">#False</font>
<font color="#006666">            SetGadgetText</font>(1, "Show Button 1")
          <b><font color="#006666">Else</font></b>                  <font color="#006666">; ButtonGadget is hidden</font>
<font color="#006666">            HideGadget</font>(0, 0)     <font color="#006666">; =&gt; show it</font>
            button = <font color="#924B72">#True</font>
<font color="#006666">            SetGadgetText</font>(1, "Hide Button 1")
          <b><font color="#006666">EndIf</font></b>
        <b><font color="#006666">EndIf</font></b>
      <b><font color="#006666">EndIf</font></b>
    <b><font color="#006666">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="disablegadget.html">DisableGadget()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=getgadgettext.html>GetGadgetText()</a> - <a href=index.html>Gadget Index</a> - <a href=hyperlinkgadget.html>HyperLinkGadget()</a> -&gt;



</body></html>